package csel.model.items;

import csel.model.CharacterStats;
import csel.model.DamageTypes;
import csel.model.entity.Entity;
import csel.model.entity.Character;

public class PencilOfStabbing extends Weapon
{

	public PencilOfStabbing()
	{
		super("Pencil", "This is the very pencil that Alex threatened to stab everyone with.", 15, "pencil");
		setBaseUseableOffense(13);
		setMyType(weaponType.onehanded);
	}

	@Override
	public void attackWith(Character self, Entity e)
	{
		if(e != null)
		{
			e.damage(DamageTypes.Direct, self.getCharacterStat(CharacterStats.Offense));
		}
	}

	@Override
	public int applyBonus(CharacterStats cs, int value)
	{
		if(cs == CharacterStats.Offense){
			return(0);
		}
		return value;
	}
}
